package com.atguigu.jxc.dao;

import com.atguigu.jxc.entity.Customer;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * ClassName: CustomerDao
 * Description:
 * Date: 2022/1/15 21:16
 *
 * @version:
 * @since JDK 1.8
 */
@Repository
public interface CustomerDao {

    Page<Customer> findPage(@Param("customerName") String customerName);

    void UpdateCustomerById(@Param("customer") Customer customer);

    void insertCustomer(@Param("customer") Customer customer);

    void deleteCustomerById(@Param("customerId") Integer customerId);

    List<Customer> getComboboxList(@Param("q")String q);

    String selectById(@Param("customerId") Integer customerId);

    String selectById1(@Param("customerId") Integer customerId);
}
